package com.yzh.springboot_rbac.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Role {
    private Integer roleId;
    @NotBlank(message = "roleName can not is null")
    private String roleName;
    @NotBlank(message = "roleKey can not is null")
    private String roleKey;//角色权限字符串，就是角色英文别称
    @NotBlank(message = "roleSort can not is nulll")
    private Integer roleSort;
    private String dataScope;//标记权限的等级
    private String menuCheckStrictly;//菜单树选择项是否关联显示（菜单项严格检查）
    private String deptCheckStrictly;//部门树选择项是否关联显示（部门树严格检查）
    private String status;
    private String createBy;
    private Date createTime;
    private String updateBy;
    private Date updateTime;
    private String delFlage;
    private String remark;

    /*角色和菜单多对多：加集合*/
    private List<Menu> menuList;
}
